package com.ruoyi.book.domain;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author Huang dun
 * @Description Huiwen API 地址
 * @Date 2025/3/6 20:44
 **/
@Component
public class HuiWenApiUrl {

    // 读者基本信息查询接口路径
    @Value("${huiwen.apiurl.api.patron.infoPath}")
    private String patronInfoPath;

    // 读者身份验证接口路径
    @Value("${huiwen.apiurl.api.patron.validPath}")
    private String patronValidPath;

    // 读者委托申请和委托划到信息查询接口路径
    @Value("${huiwen.apiurl.api.patron.commissionRequest}")
    private String patronCommissionRequestPath;

    // 获取取图书封面接口路径
    @Value("${huiwen.apiurl.opac.getBookCover}")
    private String getBookCoverPath;

    // Getter 方法
    public String getPatronInfoPath() {
        return patronInfoPath;
    }

    public String getPatronValidPath() {
        return patronValidPath;
    }

    public String getPatronCommissionRequestPath() {
        return patronCommissionRequestPath;
    }

    public String getGetBookCoverPath() {
        return getBookCoverPath;
    }


    // Setter 方法
    public void setPatronInfoPath(String patronInfoPath) {
        this.patronInfoPath = patronInfoPath;
    }

    public void setPatronValidPath(String patronValidPath) {
        this.patronValidPath = patronValidPath;
    }

    public void setPatronCommissionRequestPath(String patronCommissionRequestPath) {
        this.patronCommissionRequestPath = patronCommissionRequestPath;
    }

    public void setGetBookCoverPath(String getBookCoverPath) {
        this.getBookCoverPath = getBookCoverPath;
    }
}
